package com.atguigu.gmall.order.vo;

import com.atguigu.gmall.user.entity.UserAddress;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author lhh
 * @ClassName OrderConfirmRespVo
 * @date 2022 2022/12/22
 */
@Data
public class OrderConfirmRespVo {

    /**
     * 商品列表
     */
    private List<SkuDetail> detailArrayList;

    /**
     * 总数量
     */
    private Integer totalNum;

    /**
     * 订单总价格
     */
    private BigDecimal totalAmount;

    /**
     * 用户列表收货地址
     */
    private List<UserAddress> userAddressList;

    /**
     * 流水号
     */
    private String tradeNo;

    @Data
    public static class SkuDetail {
        //skuId、imgUrl、skuName、orderPrice、skuNum
        private Long skuId;
        private String imgUrl;
        private String skuName;
        private BigDecimal orderPrice;
        private Integer skuNum;
        private String hasStock = "1"; //1：有货  0：无货
    }
}
